@{
    Layout=null;
}
@using mvc.Models;
@model Product


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
  
    </style>
</head>
<body>
    <div>
        @if(Model==null){
            <table>
            <tr hidden>
                <td>
                    Id：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" id="Id">
                </td>
            </tr>
            <tr>
                <td>
                    商品名称：&nbsp;&nbsp;&nbsp;<input type="text" id="ProductName">
                </td>
            </tr>
            <tr>
                <td>
                    供应商名称：<input type="text" id="Supplier">
                </td>
            </tr>
            <tr>
                <td>
                    价格：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" id="Price">
                </td>
            </tr>
            <tr>
                <td>
                    库存数量：&nbsp;&nbsp;&nbsp;<input type="text" id="Stock">
                </td>
            </tr>
            <tr>
                <td>
                    备注：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" id="Remarks">
                </td>
            </tr>
            <tr>
                <td>
                    <input type="button" value="保存" onclick="Save()">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="button" value="取消" onclick="Cancal()">
                </td>
            </tr>
        </table>
        }else{
            <table>
            <tr hidden>
                <td>
                    Id：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" id="Id" value="@Model.Id">
                </td>
            </tr>
            <tr>
                <td>
                    商品名称：&nbsp;&nbsp;&nbsp;<input type="text" id="ProductName" value="@Model.ProductName">
                </td>
            </tr>
            <tr>
                <td>
                    供应商名称：<input type="text" id="Supplier" value="@Model.Supplier">
                </td>
            </tr>
            <tr>
                <td>
                    价格：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" id="Price" value="@Model.Price">
                </td>
            </tr>
            <tr>
                <td>
                    库存数量：&nbsp;&nbsp;&nbsp;<input type="text" id="Stock" value="@Model.Stock">
                </td>
            </tr>
            <tr>
                <td>
                    备注：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" id="Remarks" value="@Model.Remarks">
                </td>
            </tr>
            <tr>
                <td>
                    <input type="button" value="保存" onclick="Save()">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="button" value="取消" onclick="Cancal()">
                </td>
            </tr>
        </table>
        }
        
    </div>
</body>
<script src="~/lib/jquery/dist/jquery.min.js"></script>
<script src="~/js/Base.js"></script>
</html>